package cn.zn.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zn-admin
 * @since 2021-08-03
 */
@TableName("SYS_USER_JZ")
public class SysUserJz extends Model<SysUserJz> {

    private String id;

    /**
     * 用户工号
     */
    @TableField("USER_CODE")
    private String userCode;

    /**
     * 组织id
     */
    @TableField("ORG_ID")
    private String orgId;

    /**
     * 类型：Z：组织；F：法人
     */
    @TableField("ORG_TYPE")
    private String orgType;

    /**
     * 组织
     */
    @TableField(exist = false)
    private String orgName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysUserJz{" +
                "userCode=" + userCode +
                ", orgId=" + orgId +
                ", orgType=" + orgType +
                "}";
    }
}
